package cn.xie.types.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

public class Constants {

    public final static String SPLIT = ",";
    public final static String COLON = ":";
    public final static String SPACE = " ";
    public final static String UNDERSCORE = "_";


    @AllArgsConstructor
    @NoArgsConstructor
    @Getter
    public enum ResponseCode {

        SUCCESS("0000", "成功"),
        UN_ERROR("0001", "未知失败"),
        ILLEGAL_PARAMETER("0002", "非法参数"),
        ;
        private String code;
        private String info;

    }
    /**
     * @description: 抽奖redis存储key常类
     * @author: xiaoxie
     * @date: 2025/8/3 下午4:46
     * @param:
     * @return:
     **/
    public static class RedisKey {
        public static String STRATEGY_KEY = "big_market_strategy_key_";
        public static String STRATEGY_RULE_KEY = "big_market_strategy_rule_key_";
        public static String STRATEGY_AWARD_KEY = "big_market_strategy_award_key_";
        public static String STRATEGY_RATE_TABLE_KEY = "big_market_strategy_rate_table_key_";
        public static String STRATEGY_RATE_RANGE_KEY = "big_market_strategy_rate_range_key_";
    }
    public static class StrategyRule{
        public static String RULE_WEIGHT = "rule_weight";
        public static String RULE_BLACK_LIST = "rule_blacklist";

    }


}
